
<%@ page import="module.blog.Article" %>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="layout" content="main_blog" />
  <g:set var="entityName" value="${message(code: 'article.label', default: 'Article')}" />
  <title>${application.sysConfig.title}</title>
</head>
<body>
  <div id="nav" class="nav">
    <g:render template="nav"/>
  </div>
  <div class="body">
    <div id="blogLeft">
      <div class="list">
        <g:each in="${articleInstanceList}" status="i" var="articleInstance">
          <div class="entry">
            <div class="entryTitle"><g:link action="show" id="${articleInstance.id}">${articleInstance.title}</g:link></div>
            <div class="entryInfo">
              by ${application.sysConfig.userName} on <g:formatDate format="yyyy-MM-dd HH:mm" date="${articleInstance.createAt}"/></div>
            <div class="entryContent">${articleInstance.content}</div>
          </div>
        </g:each>
      </div>
      <div class="paginateButtons">
        <g:paginate total="${articleInstanceTotal}" />
      </div>
    </div>
    <div id="blogRight">
      <g:render template="blogRight"/>
    </div>
  </div>
</body>
</html>
